﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="DutyScheduleSrhForm.aspx.cs" Inherits="App_Master_DutyScheduleSrhForm"
    Title="工作排班表检索" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table border="0" class="table_border_line">
        <tr>
            <td align="left">

                <script language="javascript" type="text/javascript">
                    (new TitleBar('SearchBar', '检索条件')).showBar();
                </script>

            </td>
        </tr>
    </table>
    <table class="table_border_line">
        <tr>
            <td style="width: 35%; background: #ffffff">&nbsp; </td>
            <td class="" style="width: 128px; height: 26px; background: #ffffff">月度排班表名称：</td>
            <td style="background: #ffffff;">&nbsp;<asp:TextBox ID="txtScheduleName" runat="server" MaxLength="32"
                Width="232px" Text="" />
            </td>
        </tr>
        <tr>
            <td style="width: 16px; background: #ffffff" class="">&nbsp; </td>
            <td class="" style="width: 128px; height: 26px; background: #ffffff">日期：&nbsp;</td>
            <td style="background: #ffffff;">&nbsp;<asp:TextBox ID="txtScheduleYear" runat="server" MaxLength="4"
                Width="45" />
                年 &nbsp; &nbsp;
                <asp:TextBox ID="txtScheduleMonth" runat="server" MaxLength="2" Width="45" />
                月 </td>
        </tr>
        <tr>
            <td style="width: 16px; background: #ffffff" class="">&nbsp; </td>
            <td class="" style="width: 128px; height: 26px; background: #ffffff">员工编号：</td>
            <td style="background: #ffffff;">&nbsp;<asp:TextBox ID="txtEmpId" runat="server" MaxLength="4" Width="45px" />
                &nbsp; &nbsp; &nbsp;&nbsp; </td>
        </tr>
        <tr>
            <td class="" style="width: 16px"></td>
            <td class="" style="width: 128px; height: 15px"></td>
            <td class=""></td>
        </tr>
        <tr>            
            <td class="" colspan="3" style="height: 26px; text-align: center">
            <asp:Button ID="btnNew" runat="server" Text=" 新 建 " CssClass="button" OnClick="btnNew_Click"/>
            &nbsp;<asp:Button ID="btnSearch" Text=" 检 索 " runat="server" CssClass="button" OnClick="btnSearch_Click" /></td>
        </tr>
    </table>
    <p>&nbsp;</p>
    <table width="100%" runat="server" id="tableRst">
        <tr>
            <td>
                <table border="0" class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript" type="text/javascript">
                    (new TitleBar('ResultBar', '检索结果')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="viewSrhRst" runat="server" AutoGenerateColumns="False" CssClass="GridView_table"
                    DataKeyNames="DutyScheduleId" BorderStyle="Solid" BorderWidth="3px" EnableViewState="False"
                    AllowPaging="True" OnRowCommand="viewSrhRst_RowCommand" OnPageIndexChanging="viewSrhRst_PageIndexChanging" >
                    <Columns>
                        <asp:BoundField HeaderText="值班计划编号" DataField="DutyScheduleId" Visible="false">
                            <ItemStyle CssClass="GridView_item_left" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="值班计划名称" DataField="DutyScheduleName">
                            <ItemStyle CssClass="GridView_item_left" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="日期" DataField="DutyScheduleYearMonth">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="120" />
                        </asp:BoundField>
                        <asp:ButtonField ButtonType="Image" CommandName="Details" HeaderText="详细" ImageUrl="~/images/info.gif"
                            Text="详细">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="65" />
                        </asp:ButtonField>
                    </Columns>
                    <PagerSettings Mode="NumericFirstLast" />
                    <PagerStyle HorizontalAlign="Right" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
